#!/bin/bash
set -e
#日志目录
logdir=/data/logs/gunicorn
if [ ! -d $logdir ]
then
  mkdir -p $logdir
fi
# gunicorn启动命令
gunicorn --preload microservice-other:app \
        --bind 0.0.0.0:9000 \
        --workers 4 \
        --log-level debug \
        --access-logfile=$logdir/access_print.log \
        --error-logfile=$logdir/error_print.log